package com.wdb.modules.xxlJob.jobHandler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author: wendaobai@qq.com
 * @date: 2024/8/26 星期一 17:00
 */
@Component
@Slf4j
public class MyJobHandler {
  @XxlJob("lessExpireSchoolFileJob")
  public ReturnT<String> lessExpireSchoolFileJob(String param) {
    log.info("aaa--");
    String jobParam = XxlJobHelper.getJobParam();
    return ReturnT.SUCCESS;
  }
  @XxlJob("testTask")
  public ReturnT<String> testTask(String param) {
    log.info("testTask1--{}",param);
    String jobParam = XxlJobHelper.getJobParam();
    log.info(jobParam);
    return ReturnT.SUCCESS;
  }
}
